package cn.xm.org.service.impl;

import cn.xm.basic.service.BaseService;
import cn.xm.basic.service.impl.BaseServiceImpl;
import cn.xm.basic.util.PageList;
import cn.xm.org.domain.Employee;
import cn.xm.org.mapper.EmployeeMapper;
import cn.xm.org.query.EmployeeQuery;
import cn.xm.org.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

@Service
public class EmployeeServiceImpl extends BaseServiceImpl<Employee> implements EmployeeService {
    @Autowired
    private EmployeeMapper employeeMapper;


    @Override
    public Employee selectByLogininfoId(Long id) {
        return employeeMapper.selectByLogininfoId(id);
    }

    @Override
    public List<Employee> findByShopId(Long id) {
        return employeeMapper.findByShopId(id);
    }
}
